import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '质保金',
    align: "center", resizable: true,
    dataIndex: 'warrantyPrice'
  },
  {
    title: '质保开始',
    align: "center", resizable: true,
    dataIndex: 'warrantyTimeStart'
  },
  {
    title: '质保结束',
    align: "center", resizable: true,
    dataIndex: 'warrantyTimeEnd'
  },
  {
    title: '项目id',
    align: "center", resizable: true,
    dataIndex: 'projectId_dictText'
  },
  {
    title: '子项目id',
    align: "center", resizable: true,
    dataIndex: 'subProjectId_dictText'
  },
  {
    title: '删除标识',
    align: "center", resizable: true,
    dataIndex: 'delFalg'
  },
];

// 高级查询数据
export const superQuerySchema = {
  warrantyPrice: {title: '质保金',order: 0,view: 'number', type: 'number',},
  warrantyTimeStart: {title: '质保开始',order: 1,view: 'datetime', type: 'string',},
  warrantyTimeEnd: {title: '质保结束',order: 2,view: 'datetime', type: 'string',},
  projectId: {title: '项目id',order: 3,view: 'list', type: 'string',dictTable: "c_project_application", dictCode: 'id', dictText: 'project_name',},
  subProjectId: {title: '子项目id',order: 4,view: 'list', type: 'string',dictTable: "c_sub_project", dictCode: 'id', dictText: 'sub_project_name',},
  delFalg: {title: '删除标识',order: 5,view: 'text', type: 'string',},
};
